.amap-demo {
  // height: 85vh;
  height: calc(100vh - 140px);
  margin: 0.5rem;
}

::v-deep .amap-logo {
  display: none;
  opacity: 0 !important;
}

::v-deep .amap-copyright {
  opacity: 0;
}

::v-deep .amap-toolbar span {
  display: block;
  width: 35px;
  height: 35px;
  line-height: 35px;
  text-align: center;
  border-radius: 0 0 4px 4px;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  font-size: 20px;
}

.map-type {
  position: absolute;
  left: 0.5vw;
  top: 11%;
  cursor: pointer;
  display: flex;
  opacity: 0.9;

  .list {
    position: absolute;
    display: flex;
    width: 40px;
    height: 40px;
    left: 0;
    background: #fff;
    border-radius: 2px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.15);
    z-index: 0;
  }

  .light {
    width: 34px;
    height: 34px;
    margin: 5px 3px 2px 3px;
    font-weight: 300 !important;
  }

  .map-type-img {
    width: 34px;
    height: 32px;
    vertical-align: top;
  }

  .select {
    position: absolute;
    left: 0;
    height: 40px;
    width: 120px;
    background: #fff;
    border-radius: 2px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.24);
    z-index: 801;
    display: flex
  }
}

.right-bottom-box {
  position: absolute;
  left: 0.5vw;
  bottom: 0.8vh;
  display: flex;
  opacity: 0.9;

  .div-box {
    width: 45px;
    height: 45px;
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    cursor: pointer;
    border: 1px solid #068FFF;
  }

  .box-img {
    width: 26px;
    height: 27px;
  }

  .box-text {
    font-weight: 400;
    color: #171717;
    font-size: 10px
  }

  .border-bottom {
    border-bottom: 0px solid #F1F1F1;
  }

  .div-box2 {
    width: 65px;
    height: 45px;
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    cursor: pointer;
    border: 1px solid #068FFF;
    z-index: 1000;
  }

  .border-left {
    border-left: 0px solid #F1F1F1;
  }
}

.device-detail-box {
  position: absolute;
  top: 150px;
  right: 0.5vw;
  width: 350px;
  // height: calc(100% - 160px);
  max-height: calc(100% - 160px);
  background-color: rgba(255, 255, 255, 1);
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.1);
  border-radius: 2px;
  padding: 5px;
  z-index: 2001;
  opacity: 0.9;

  .close-icon {
    position: absolute;
    right: -8px;
    top: -8px;
    font-size: 24px;
    cursor: pointer;
  }

  .device-detail-header {
    background: #008CFF;
    border-radius: 2px;
    height: 60px;
    margin: 15px 10px;
    display: flex;
    align-items: center;
  }

  .detail-card-title-icon {
    font-size: 1.6rem;
    margin: 0% 2% 0% 2%;
    color: white;
  }

  .detail-card-title-text {
    color: white;
    font-size: 19px;
    line-height: 22px;
    margin-left: 5px;
  }

  .device-detail-content {
    margin-top: -10px;
    margin-left: 10px;
    margin-right: 10px;

    .info {
      padding: 10px;
      font-size: 15px;
    }

    .info-item {
      display: flex;
      margin-bottom: 20px;
    }

    .info-item-label {
      width: 80px;
      color: #252525;
    }

    .info-item-value {
      color: rgb(93, 93, 93);
      flex: 1;
    }

    .early-warning-event {
      font-size: 14px;
      overflow: auto;
      width: 103%;
    }

    .event {
      border: 1px solid #f1f1f1;
      padding: 8px 8px 0px 8px;
      border-radius: 2px;
      background: #fdfcfc;
      margin-bottom: 5px;
    }

    .event-item {
      display: flex;
      margin-bottom: 10px;
    }
  }
}

.info-window {
  width: 250px;
  height: 180px;
  // min-height: 200px;
  // max-height: 250px;
  padding-left: 15px;
  padding-right: 5px;
  overflow: auto;
  // margin-top: 10px;

  .info-item {
    display: flex;
    align-items: center;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 5px;
    border-bottom: 1px solid #e9eef5;

    cursor: pointer;
    animation: all;
  }

  .background {
    background: #d6e3f6;
  }

  .info-item:hover {
    background: #e9eef5;
  }

  .info-item-label {
    flex: 1;
    font-size: 16px;
    font-family: Microsoft YaHei;
    font-weight: 400;
    color: #000;
    margin-left: 10px;
  }
}

.info-window::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

.info-window::-webkit-scrollbar-thumb {
  background: #d3dce6;
  border-radius: 20px;
}





// .info-window {
//   width: 350px;
//   max-height: 360px;
//   height: auto;
//   background: white;
//   padding: 5%;
//   border: 0px;
//   border-radius: 2px;

//   .info-window-title {
//     width: 100%;
//     min-height: 30px;
//     display: flex;
//     align-items: center;
//     font-size: 1rem;
//     color: #5d5d5d;
//   }

//   .info-window-list-container {
//     margin-top: 2%;
//     max-height: 280px;
//     overflow: auto;

//     .info-window-list {
//       cursor: pointer;
//       border-bottom: 1px solid #e9eef5;
//       border-radius: 2px;
//       padding: 5% 5% 5% 0;
//       font-size: 1rem;
//       display: flex;
//       // justify-content: center;
//       transition: 0.1s linear;
//       align-items: center;

//       .info-window-list-icon {
//         font-size: 24px;
//         margin-left: 2%;
//         margin-right: 2%;
//       }
//     }

//     .info-window-list:hover {
//       background: #e9eef5;
//     }
//   }
// }
